import { Table } from 'antd'
import React from 'react'

export default function TableCom({ residentList, columns, pagination, loading, rowSelection }) {
  return (
    <Table
      style={{ marginTop: '10px' }}
      // rowSelection={{
      //   onChange: (e) => setSelectedRowKeys(e)
      // }}
      rowSelection={rowSelection || false}
      pagination={pagination}
      loading={loading}
      columns={columns}
      dataSource={residentList}></Table>
  )
}
